package com.vpclub.bean;

import java.io.Serializable;
import java.sql.Date;

/**
 * @author : leimingchao
 * @version V1.0
 * @Project: jdbcday01
 * @Package com.vpclub.bean
 * @Description: TODO
 * @date Date : 2021年05月29日 12:07
 *   ORM编程思想  （object relational mapping）
 *   一个数据表对应一个java类
 *   表中的一条记录对应java类的一个对象
 *   表中的一个字段对应java类的一个属性
 */
public class Customer implements Serializable {
    private Integer id;
    private String name;
    private String email;
    private Date birth;

    public Customer() {
    }

    public Customer(Integer id, String name, String email, Date birth) {
        this.id = id;
        this.name = name;
        this.email = email;
        this.birth = birth;
    }

    public Customer(String name, String email, Date birth) {
        this.name = name;
        this.email = email;
        this.birth = birth;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Date getBirth() {
        return birth;
    }

    public void setBirth(Date birth) {
        this.birth = birth;
    }

    @Override
    public String toString() {
        return "Customer{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", email='" + email + '\'' +
                ", birth=" + birth +
                '}';
    }
}
